package cn.enzo.utils.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface CommonDao<T> {

	public Integer save(@Param("voBean") T entity) throws Exception;

	public Integer update(@Param("voBean") T entity) throws Exception;

	public Integer deleteBykey(@Param("key") Object key) throws Exception;

	public Integer deleteByList(@Param("keyList") List<String> keylist) throws Exception;

	public T selectByKey(@Param("key") Object key) throws Exception;
	
	public List<T> queryByCondition(@Param("voBean")T entity)throws Exception;

}
